import QtQuick
import QtQuick.Layouts
import QtQuick.Controls

Window {
    width: 800
    height: 600
    visible: true
    title: qsTr("时间选择器示例")

    Rectangle {
        anchors.fill: parent
        color: "#f5f5f5"

        Row {
            anchors.centerIn: parent
            spacing: 20

            Column {
                spacing: 10

                Text {
                    text: "时间选择器"
                    font.pixelSize: 16
                    color: "#333333"
                    anchors.horizontalCenter: parent.horizontalCenter
                }

                TimePicker {
                    // 时间选择器组件
                }
            }

            Column {
                spacing: 10

                Text {
                    text: "日期时间选择器"
                    font.pixelSize: 16
                    color: "#333333"
                    anchors.horizontalCenter: parent.horizontalCenter
                }

                DateTimePicker {
                    // 日期时间选择器组件
                }
            }
        }
    }
}
